package experimentThird;

class Partition {
    int startAddress; // 分区起始地址
    int size; // 分区大小
    boolean isFree; // 分区状态
    Partition next; // 下一个分区
    Partition prev; // 上一个分区

    public Partition(int startAddress, int size, boolean isFree) {
        this.startAddress = startAddress;
        this.size = size;
        this.isFree = isFree;
        this.next = null;
        this.prev = null;
    }

    @Override
    public String toString() {
        return "Partition{" +
                "startAddress=" + startAddress +
                ", size=" + size +
                ", isFree=" + isFree +
                '}';
    }
}